<template>
  <div >
    <a-form-model class="fromModels" ref="appMyRateModel"  :model="appMyRateFroms" layout="vertical" 
    :labelCol="{span: 6}" :wrapperCol="{span: 12}">
        <a-form-model-item label="笔数费是否展示" >
          <a-radio-group v-model="appMyRateFroms.is_show">
            <a-radio :value="1"> 是 </a-radio>
            <a-radio :value="0"> 否 </a-radio>
          </a-radio-group>
        </a-form-model-item>
        <a-form-model-item  :wrapper-col="{ span: 12, offset:5 }">
          <a-button type="primary" @click="whites">提交</a-button>
        </a-form-model-item>
    </a-form-model>
  </div>
</template>

<script>
import {getConfigCommon,writeConfigCommon } from '@/api/system.js'
export default {
  name: 'appMyRate',
  
  data() {
      return {
        appMyRateFroms:{
          is_show:1
        },
      }
  },
  created(){
    this.getPrivacyAgreementInfo()
  },
  methods:{
    getPrivacyAgreementInfo(){
      getConfigCommon({
        scene:'user_trade_fee_show',
        brand_id: process.env.VUE_APP_BRAND_ID,
      }).then(res=>{
        this.appMyRateFroms=res.data
      })
    },
    whites(){
      writeConfigCommon({
        scene:'user_trade_fee_show',
        brand_id: process.env.VUE_APP_BRAND_ID,
        ...this.appMyRateFroms
      }).then(res=>{
        this.$message.success("操作成功");
      })
    },
  }
}
</script>

<style lang="less" scoped>
</style>
